checkOrNoteProxyOp
open fun checkOrNoteProxyOp(@NonNull context: @NonNull Context, proxyUid: Int, @NonNull op: @NonNull String, @NonNull proxiedPackageName: @NonNull String): Int(source)
Check op for both proxy and proxied packages. Do a quick check for whether an application might be able to perform an operation. This is not a security check. On API 23-28, fallback to noteProxyOpNoThrow On API 22 and lower, this method always returns MODE_IGNORED
Return
Returns MODE_ALLOWED if the operation is allowed, or
Parameters
context
Your context.
proxyUid
The uid of the proxy application.
op
The operation to note. One of the OPSTR_* constants.
proxiedPackageName
The name of the application calling into the proxy application.